package com.example.bookstore;

import android.content.Context;
import android.content.Intent;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import java.util.LinkedList;
import java.util.List;

import okhttp3.FormBody;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;

public class WebConnect {
    public static Context mcontext;
    public static void sendMessage(String s, Context context, Class<selectResult> selectResultClass) {
        Intent intent = new Intent(context,selectResultClass);
        intent.putExtra("selectData",s);
        context.startActivity(intent);
    }
    public static String randomStatus(){
        int a=(int)(Math.random()*(4-1)+1);
        String[] status=new String[5];
        status[1]="已完成";
        status[2]="未付款";
        status[3]="待收货";
        status[4]="已取消";
        return status[a];
    }
}
